package com.vert.auth.service;

import com.vert.auth.model.UserModel;
import com.vert.db.model.IPage;

/**
 * @Classname UserModelService
 * @Description TODO
 * @Date 2022/6/2 12:52
 * @Created by XiongXiong
 * @Author: X.I.O
 */
public interface UserModelService {

  /**
   * 用户新增
   * @param userModel
   * @return
   */
  UserModel saveUserModel(UserModel userModel);

  /**
   * 通过用户账号获取用户
   * @param username
   * @return
   */
  UserModel getUserModel(String username);

  /**
   * 获取分页数据
   * @param pageNum
   * @param pageSize
   * @return
   */
  IPage<UserModel> getUserModelPage(int pageNum,int pageSize);


}
